#pragma once



template<typename T>
class AutoPtr
{
public:
    AutoPtr(int num)
    {
        _t = new T[num];
    };
    ~AutoPtr()
    {
        delete _t;
    };

    T* getPtr()
    {
        return _t;
    }

private:
    T* _t;
};
